/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.evl.tecinfo.gui;

import java.awt.Color;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.text.ParseException;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import javax.swing.text.MaskFormatter;

/**
 *
 * @author Jalisson
 */
public class RegistroHorasExtras extends javax.swing.JFrame {

    static Object getLogin() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    private int clicou_ok;
    private int linha_editar = -1;

    /**
     * Creates new form RegistroHoraExtra
     */
    public RegistroHorasExtras() {
        initComponents();
        setSize(970, 650);
        setLocationRelativeTo(this);
        setTitle("Registro de Horas Extras");






        //MENSAGEM DE CONFIRMAÇÃO DE SAIDA DA JENELA        
        setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent evt) {
                if (JOptionPane.showConfirmDialog(null, "Tem certeza que deseja sair?") == JOptionPane.YES_NO_OPTION) {
                    RegistroHorasExtras.this.dispose();
                }
            }
        });



        //IMAGEM ÍCONE
        ImageIcon icone = new ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/icon64x64.png"));
        setIconImage(icone.getImage());


        //DASABILITAR FUNÇÕES
        jComboBox_Funcionarios.setEnabled(false);
        jFormattedTextField_HA.setEnabled(false);
        jFormattedTextField_BH.setEnabled(false);
        jFormattedTextField_Outros.setEnabled(false);
        jButton_LancarHoras.setEnabled(false);
        jButton_Finalizar.setEnabled(false);
        jButton_Iniciar.setEnabled(false);
        jLabel_Func.setEnabled(false);
        jLabel_HA.setEnabled(false);
        jLabel_BH.setEnabled(false);
        jLabel_Outros.setEnabled(false);
        //FIM ******

        //TRY CATCH H/A        
        MaskFormatter formatterHA = null;
        try {
            formatterHA = new MaskFormatter("##,##");

        } catch (ParseException exc) {
            exc.printStackTrace();
        }
        formatterHA.install(jFormattedTextField_HA);
        //FIM TRY CATCH H/A ********   

        //TRY CATCH B/H
        MaskFormatter formatterBH = null;
        try {
            formatterBH = new MaskFormatter("##,##");

        } catch (ParseException exc) {
            exc.printStackTrace();
        }
        formatterBH.install(jFormattedTextField_BH);
        //FIM TRY CATCH B/H ******** 

        //TRY CATCH Outros        
        MaskFormatter formatterOutros = null;
        try {
            formatterOutros = new MaskFormatter("##,##");

        } catch (ParseException exc) {
            exc.printStackTrace();
        }
        formatterOutros.install(jFormattedTextField_Outros);
        //FIM TRY CATCH Outros ******** 



    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    public void windowClosing(WindowEvent e) {
        java.awt.Toolkit.getDefaultToolkit().beep();
        clicou_ok = JOptionPane.showConfirmDialog(null, "Deseja realmente fechar?", "Confirmação", JOptionPane.YES_NO_OPTION);
        if (clicou_ok == JOptionPane.YES_OPTION) {
            this.dispose();
        } else if (clicou_ok == JOptionPane.NO_OPTION) {
        }
    }
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelRegistroHoras = new javax.swing.JLabel();
        jLabelIMGRegsitroHoras = new javax.swing.JLabel();
        jLabel_Mes = new javax.swing.JLabel();
        jComboBoxMesHoraextra = new javax.swing.JComboBox();
        jLabel_Ano = new javax.swing.JLabel();
        jComboBoxano_horaextra = new javax.swing.JComboBox();
        jButton_Iniciar = new javax.swing.JButton();
        jLabel_Func = new javax.swing.JLabel();
        jComboBox_Funcionarios = new javax.swing.JComboBox();
        jLabel_HA = new javax.swing.JLabel();
        jFormattedTextField_HA = new javax.swing.JFormattedTextField();
        jLabel_BH = new javax.swing.JLabel();
        jFormattedTextField_BH = new javax.swing.JFormattedTextField();
        jLabel_Outros = new javax.swing.JLabel();
        jFormattedTextField_Outros = new javax.swing.JFormattedTextField();
        jButton_LancarHoras = new javax.swing.JButton();
        jButton_Finalizar = new javax.swing.JButton();
        jButton_cancelarHorasExtras = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTablehoraextra = new javax.swing.JTable();
        jLabel_IMG_Lado = new javax.swing.JLabel();
        jLabel_IMG_Lado1 = new javax.swing.JLabel();
        jLabel_IMG_registro = new javax.swing.JLabel();
        jLabelIMGbg = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Registro de Horas Exstras");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setLocationByPlatform(true);
        setMinimumSize(null);
        setResizable(false);
        getContentPane().setLayout(null);

        jLabelRegistroHoras.setFont(new java.awt.Font("Century Gothic", 0, 18)); // NOI18N
        jLabelRegistroHoras.setForeground(new java.awt.Color(102, 102, 102));
        jLabelRegistroHoras.setText("REGISTRO DE HORAS EXTRAS");
        getContentPane().add(jLabelRegistroHoras);
        jLabelRegistroHoras.setBounds(340, 20, 260, 40);

        jLabelIMGRegsitroHoras.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/registrodehoras.png"))); // NOI18N
        getContentPane().add(jLabelIMGRegsitroHoras);
        jLabelIMGRegsitroHoras.setBounds(320, 20, 300, 40);

        jLabel_Mes.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel_Mes.setText("Mês:");
        getContentPane().add(jLabel_Mes);
        jLabel_Mes.setBounds(20, 130, 30, 30);

        jComboBoxMesHoraextra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jComboBoxMesHoraextra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "nenhum", "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" }));
        jComboBoxMesHoraextra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxMesHoraextraActionPerformed(evt);
            }
        });
        getContentPane().add(jComboBoxMesHoraextra);
        jComboBoxMesHoraextra.setBounds(60, 130, 130, 30);

        jLabel_Ano.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel_Ano.setText("Ano:");
        getContentPane().add(jLabel_Ano);
        jLabel_Ano.setBounds(20, 170, 30, 30);

        jComboBoxano_horaextra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jComboBoxano_horaextra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "nenhum", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));
        jComboBoxano_horaextra.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxano_horaextraActionPerformed(evt);
            }
        });
        getContentPane().add(jComboBoxano_horaextra);
        jComboBoxano_horaextra.setBounds(60, 170, 130, 30);

        jButton_Iniciar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jButton_Iniciar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/conformado20x20.png"))); // NOI18N
        jButton_Iniciar.setText("INICIAR");
        jButton_Iniciar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_IniciarActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_Iniciar);
        jButton_Iniciar.setBounds(60, 210, 130, 30);

        jLabel_Func.setFont(new java.awt.Font("Century Gothic", 0, 11)); // NOI18N
        jLabel_Func.setText("FUNCIONÁRIO:");
        getContentPane().add(jLabel_Func);
        jLabel_Func.setBounds(220, 130, 90, 30);

        jComboBox_Funcionarios.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "nenhum", "2" }));
        jComboBox_Funcionarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox_FuncionariosActionPerformed(evt);
            }
        });
        getContentPane().add(jComboBox_Funcionarios);
        jComboBox_Funcionarios.setBounds(310, 130, 440, 30);

        jLabel_HA.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel_HA.setText("H/A Mês:");
        getContentPane().add(jLabel_HA);
        jLabel_HA.setBounds(310, 180, 60, 30);

        jFormattedTextField_HA.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jFormattedTextField_HAActionPerformed(evt);
            }
        });
        getContentPane().add(jFormattedTextField_HA);
        jFormattedTextField_HA.setBounds(380, 180, 160, 30);

        jLabel_BH.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel_BH.setText("B/H Mês:");
        getContentPane().add(jLabel_BH);
        jLabel_BH.setBounds(310, 220, 50, 30);

        jFormattedTextField_BH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jFormattedTextField_BHActionPerformed(evt);
            }
        });
        getContentPane().add(jFormattedTextField_BH);
        jFormattedTextField_BH.setBounds(380, 220, 160, 30);

        jLabel_Outros.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jLabel_Outros.setText("Outros:");
        getContentPane().add(jLabel_Outros);
        jLabel_Outros.setBounds(550, 180, 50, 30);

        jFormattedTextField_Outros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jFormattedTextField_OutrosActionPerformed(evt);
            }
        });
        getContentPane().add(jFormattedTextField_Outros);
        jFormattedTextField_Outros.setBounds(610, 180, 140, 30);

        jButton_LancarHoras.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jButton_LancarHoras.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/editarhoras20x20.png"))); // NOI18N
        jButton_LancarHoras.setText("LANÇAR");
        jButton_LancarHoras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_LancarHorasActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_LancarHoras);
        jButton_LancarHoras.setBounds(800, 130, 140, 29);

        jButton_Finalizar.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jButton_Finalizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/conformado20x20.png"))); // NOI18N
        jButton_Finalizar.setText("FINALIZAR");
        jButton_Finalizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_FinalizarActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_Finalizar);
        jButton_Finalizar.setBounds(800, 170, 140, 30);

        jButton_cancelarHorasExtras.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jButton_cancelarHorasExtras.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/sair20x20.png"))); // NOI18N
        jButton_cancelarHorasExtras.setText("CANCELAR");
        jButton_cancelarHorasExtras.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_cancelarHorasExtrasActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_cancelarHorasExtras);
        jButton_cancelarHorasExtras.setBounds(800, 230, 140, 30);

        jTablehoraextra.setFont(new java.awt.Font("Century Gothic", 0, 12)); // NOI18N
        jTablehoraextra.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Funcionário", "Mês", "Ano", "R$ H/A Mês", "R$ B/H Mês", "Outros", "Total"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.Integer.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, true, true, true, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTablehoraextra.setEnabled(false);
        jScrollPane1.setViewportView(jTablehoraextra);
        jTablehoraextra.getColumnModel().getColumn(0).setPreferredWidth(250);
        jTablehoraextra.getColumnModel().getColumn(1).setResizable(false);
        jTablehoraextra.getColumnModel().getColumn(1).setPreferredWidth(70);
        jTablehoraextra.getColumnModel().getColumn(2).setResizable(false);
        jTablehoraextra.getColumnModel().getColumn(2).setPreferredWidth(60);
        jTablehoraextra.getColumnModel().getColumn(2).setCellEditor(null);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(10, 300, 940, 300);

        jLabel_IMG_Lado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/abamenu.jpg"))); // NOI18N
        getContentPane().add(jLabel_IMG_Lado);
        jLabel_IMG_Lado.setBounds(0, 100, 200, 180);

        jLabel_IMG_Lado1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/abamenu.jpg"))); // NOI18N
        getContentPane().add(jLabel_IMG_Lado1);
        jLabel_IMG_Lado1.setBounds(770, 100, 200, 180);

        jLabel_IMG_registro.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/registro.jpg"))); // NOI18N
        getContentPane().add(jLabel_IMG_registro);
        jLabel_IMG_registro.setBounds(-10, 100, 980, 180);

        jLabelIMGbg.setForeground(new java.awt.Color(255, 255, 255));
        jLabelIMGbg.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/evl/tecinfo/gui/imagens/backgroud.jpg"))); // NOI18N
        getContentPane().add(jLabelIMGbg);
        jLabelIMGbg.setBounds(0, -6, 970, 650);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jComboBoxano_horaextraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxano_horaextraActionPerformed
        //CONDIÇÃO PARA NÃO PERMITIR LISTAR ENQUANTO NÃO SELECIONAR MÊS E ANO
        if (jComboBoxMesHoraextra.getSelectedIndex() != 0 && jComboBoxano_horaextra.getSelectedIndex() != 0) {
            jButton_Iniciar.setEnabled(true);
        } else {
            jButton_Iniciar.setEnabled(false);
        }
    }//GEN-LAST:event_jComboBoxano_horaextraActionPerformed

    private void jButton_IniciarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_IniciarActionPerformed
        //ABILITAR BOTÃO DE CONCLIRI (QUERO QUE ELE SÓ SEJA ATIVADO QUANDO A TABELA FOR ALTERADA)       
        jComboBox_Funcionarios.setEnabled(true);
        jFormattedTextField_HA.setEnabled(true);
        jFormattedTextField_BH.setEnabled(true);
        jFormattedTextField_Outros.setEnabled(true);
        jButton_LancarHoras.setEnabled(true);
        jButton_Finalizar.setEnabled(true);
        jLabel_HA.setEnabled(true);
        jLabel_BH.setEnabled(true);
        jLabel_Outros.setEnabled(true);
        jLabel_Func.setEnabled(true);
        jComboBoxMesHoraextra.setEnabled(false);
        jComboBoxano_horaextra.setEnabled(false);
        jButton_Iniciar.setEnabled(false);
        jLabel_Mes.setEnabled(false);
        jLabel_Ano.setEnabled(false);
    }//GEN-LAST:event_jButton_IniciarActionPerformed

    private void jButton_FinalizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_FinalizarActionPerformed
    }//GEN-LAST:event_jButton_FinalizarActionPerformed

    private void jButton_cancelarHorasExtrasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_cancelarHorasExtrasActionPerformed
        //MENSAGEM PARA CANCELAR O CADASTRO 
        java.awt.Toolkit.getDefaultToolkit().beep();
        clicou_ok = JOptionPane.showConfirmDialog(null, "Deseja realmente cancelar?", "Confirmação", JOptionPane.YES_NO_OPTION);
        if (clicou_ok == JOptionPane.YES_OPTION) {
            this.dispose();
        } else if (clicou_ok == JOptionPane.NO_OPTION) {
        }

    }//GEN-LAST:event_jButton_cancelarHorasExtrasActionPerformed

    private void jComboBoxMesHoraextraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxMesHoraextraActionPerformed
        //CONDIÇÃO PARA NÃO PERMITIR LISTAR ENQUANTO NÃO SELECIONAR MÊS E ANO
        if (jComboBoxMesHoraextra.getSelectedIndex() != 0 && jComboBoxano_horaextra.getSelectedIndex() != 0) {
            jButton_Iniciar.setEnabled(true);
        } else {
            jButton_Iniciar.setEnabled(false);
        }
    }//GEN-LAST:event_jComboBoxMesHoraextraActionPerformed

    private void jComboBox_FuncionariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox_FuncionariosActionPerformed
        // TODO add your handling code here:   
        
    }//GEN-LAST:event_jComboBox_FuncionariosActionPerformed

    private void jButton_LancarHorasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_LancarHorasActionPerformed
        //CHECAR CAMPOS VAZIOS E ENVIAR HORAS 
        boolean camposvazios = false;
        if (linha_editar == -1) {
            if (jComboBox_Funcionarios.getSelectedIndex() != 0) {
                if (jFormattedTextField_HA.getText().equals("  ,  ") && jFormattedTextField_BH.getText().equals("  ,  ")
                        && jFormattedTextField_Outros.getText().equals("  ,  ")) {
                    camposvazios = false;
                    java.awt.Toolkit.getDefaultToolkit().beep();
                    JOptionPane.showMessageDialog(null, "Por favor, preenxa a hora do funcionário.");
                } else {
                    jButton_Iniciar.setEnabled(false);
                    camposvazios = true;
                }
            } else {
                camposvazios = false;
                java.awt.Toolkit.getDefaultToolkit().beep();
                JOptionPane.showMessageDialog(null, "Por favor, selecione um funcionário.");
                camposvazios = false;
            }
            if (camposvazios == true) {
                
    
                //LANÇAR HORAS PARA O BANCO
      
                    DefaultTableModel dtm = (DefaultTableModel) jTablehoraextra.getModel();
                    String total = (jFormattedTextField_HA.getText()+ jFormattedTextField_BH.getText()+ jFormattedTextField_Outros.getText());
                    Object[] opcoes = {jComboBox_Funcionarios.getSelectedItem(), jComboBoxMesHoraextra.getSelectedItem(),
                        jComboBoxano_horaextra.getSelectedItem(), ("R$ ")+jFormattedTextField_HA.getText(),
                        ("R$ ")+jFormattedTextField_BH.getText(),("R$ ")+jFormattedTextField_Outros.getText()};
                    dtm.addRow(opcoes);
                


                //JOptionPane.showMessageDialog(null, "Horas Lançadas com Sucesso!");
                jComboBox_Funcionarios.setSelectedIndex(0);
                jFormattedTextField_HA.setText("");

                jFormattedTextField_BH.setText("");
                jFormattedTextField_Outros.setText("");
            }
        }
    }//GEN-LAST:event_jButton_LancarHorasActionPerformed

    private void jFormattedTextField_HAActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFormattedTextField_HAActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jFormattedTextField_HAActionPerformed

    private void jFormattedTextField_BHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFormattedTextField_BHActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jFormattedTextField_BHActionPerformed

    private void jFormattedTextField_OutrosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFormattedTextField_OutrosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jFormattedTextField_OutrosActionPerformed
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;


                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(RegistroHorasExtras.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(RegistroHorasExtras.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(RegistroHorasExtras.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(RegistroHorasExtras.class
                    .getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new RegistroHorasExtras().setVisible(true);
            }
        });
    }
    int selected_Row = -1;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_Finalizar;
    private javax.swing.JButton jButton_Iniciar;
    private javax.swing.JButton jButton_LancarHoras;
    private javax.swing.JButton jButton_cancelarHorasExtras;
    private javax.swing.JComboBox jComboBoxMesHoraextra;
    private javax.swing.JComboBox jComboBox_Funcionarios;
    private javax.swing.JComboBox jComboBoxano_horaextra;
    private javax.swing.JFormattedTextField jFormattedTextField_BH;
    private javax.swing.JFormattedTextField jFormattedTextField_HA;
    private javax.swing.JFormattedTextField jFormattedTextField_Outros;
    private javax.swing.JLabel jLabelIMGRegsitroHoras;
    private javax.swing.JLabel jLabelIMGbg;
    private javax.swing.JLabel jLabelRegistroHoras;
    private javax.swing.JLabel jLabel_Ano;
    private javax.swing.JLabel jLabel_BH;
    private javax.swing.JLabel jLabel_Func;
    private javax.swing.JLabel jLabel_HA;
    private javax.swing.JLabel jLabel_IMG_Lado;
    private javax.swing.JLabel jLabel_IMG_Lado1;
    private javax.swing.JLabel jLabel_IMG_registro;
    private javax.swing.JLabel jLabel_Mes;
    private javax.swing.JLabel jLabel_Outros;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTablehoraextra;
    // End of variables declaration//GEN-END:variables
}
